<!DOCTYPE html>
	<html>
		<head>
			<meta charset="UTF-8" />
			<title>0-Hack</title>
			<link rel="stylesheet" href="/static/style.css" />
			<link href='http://fonts.googleapis.com/css?family=Lato:400,900' rel='stylesheet' type='text/css'>
		</head>
	
		<body>
		<div class="header">
		0-Hack
		</div>
			<div align="right">Welcome, {{user}}! | <a href="{{logout_url}}">{{logout}}</a> <a href="{{login_url}}">{{login}}</a> </div>
			<div id="navigation_container">
			<!-- left side of fork effect -->
				<div class="l-triangle-top"></div>
				<div class="l-triangle-bottom"></div>
			<!-- ribbon body -->
				<div class="rectangle">
			<!-- navigation links -->
				
				<ul id="navigation">
					<li><a href="/">Home</a></li>
					<li><a href="/shop">My Shop</a></li>
					<li><a href="/admin">Administration</a></li>
					<li><a href="#">0-Hack Info</a></li>
				</ul>
			<!-- end ribbon body -->
				</div>
			<!-- right side of fork effect -->
				<div class="r-triangle-top"></div>
				<div class="r-triangle-bottom"></div>
			<!-- end container -->
			</div>
			
            <div class = "info">	
            <article>	
                <h1>Welcome to the Bazaar. </h1>
                <p>A hub of bustling activity, from the Indian snake charmer to the trapeze artist riding the unicycle, we have no lack of entertainment.
				Most importantly, we have no lack of goods to sell, nor places for you to market them.
				We wish you a fruitful stay.</p>
				
			<form name = "search" action ="/searchitems">
				Search: <input type="text" name="search" value="search">
				<input type="submit" value="Submit">
			</form>
            
			
            <h1 class="reglog_text">Shop items </h1>
			<div class = "reglog" >
			
				<table>
					<tr>
					<td>Item Name</td>
					<td>Item Price</td>
					<td>Item Description</td>
					<td>Item Creation Time</td>
					<td>Item Expiry Date</td>
					</tr>
					{% for item in items %}
					<tr>
					<td>{{ item['itemname'] }}</td>
					<td>{{ item['itemprice'] }}</td>
					<td>{{ item['itemdescription'] }}</td>
					<td>{{ item['itemcreationtime'] }}
					<td>{{ item['itemexpirydate']}}</td>
					</tr>
					{% endfor %}


				</table>
    

			</div>


			 
             </article>
             </div>
             </div>
		</body>
	
		<footer>
		&copy; 2013
		</footer>